from config.settings import get_config
from base.base_page import BasePage

"""
封装功能函数

"""

class GatewayPage(BasePage):
    def __init__(self, driver, device_type, logger=None):
        super().__init__(driver, device_type, logger=logger)  # 传递日志实例
        self.driver = driver
        self.config = get_config(device_type)  # 获取全局配置

    def create_gateway(self):
        self.click("gateway_page", "create_button")